package com.backend.modules.notification.repository;

import com.backend.modules.notification.entity.Notification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface NotificationRepository extends 
        JpaRepository<Notification, Long>, 
        JpaSpecificationExecutor<Notification> {
    
    long countByReceiverIdAndReadFalse(Long receiverId);
}